package com.whenjun.dto.kq;

import com.alibaba.fastjson.JSONArray;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

@Data
public class KqDTO implements Serializable {


    @ApiModelProperty("isc用户id")
    private String personId;

    @ApiModelProperty("工号")
    private String jobNo;

    @ApiModelProperty("姓名")
    private String personName;

    @ApiModelProperty("人员部门 id")
    private String departmentId;

    @ApiModelProperty("人员部门")
    private String departmentName;

    @ApiModelProperty("人员班组 id")
    private String departmentGroupId;

    @ApiModelProperty("人员班组")
    private String departmentGroupName;

    @ApiModelProperty("考勤状态")
    private String kqState;

    @ApiModelProperty("考勤状态集合")
    private JSONArray kqStateList;

    @ApiModelProperty("考勤状态名称")
    private String kqStateName;

    @ApiModelProperty("考勤状态名称集合")
    private JSONArray kqStateNameList;

    @ApiModelProperty("上班打卡次数")
    private Integer dakaShangbanNum;

    @ApiModelProperty("下班打卡次数")
    private Integer dakaXiabanNum;

    @ApiModelProperty("加班时长（秒）")
    private Integer jiabanTime;

    @ApiModelProperty("加班时长（时分秒）")  // 分秒
    private String jiabanTimeStr;

    @ApiModelProperty("日期")
    private String date;

    @ApiModelProperty("统计考勤总时长(秒)")
    private Integer countKqTime;

    @ApiModelProperty("统计考勤总时长(时分秒)") // 分秒
    private String countKqTimeStr;

    @ApiModelProperty("考勤日休息总时长(秒)")
    private Integer restSumTime;

    @ApiModelProperty("考勤日休息总时长(时分秒)") // 分秒
    private String restSumTimeStr;

    @ApiModelProperty("备注")
    private String remark;


    @ApiModelProperty("班组上班时间")
    private LocalTime departmentGroupShangbanTime;

    @ApiModelProperty("班组下班时间")
    private LocalTime departmentGroupXiabanTime;


    @ApiModelProperty("上班打卡时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dakaShangbanTime;

    @ApiModelProperty("下班打卡时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dakaXiabanTime;
}
